package com.tencreat.domain.pt;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.time.LocalDateTime;
import com.tencreat.common.core.domain.BaseEntity;
import java.math.BigDecimal;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.tencreat.common.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;


/**
 * 奖金池对象 mall_pt_bonus_pool
 *
 * @author wangkai
 * @date 2021-11-30
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@ApiModel
@TableName("mall_pt_bonus_pool")
public class MallPtBonusPool extends BaseEntity<MallPtBonusPool>{
    private static final long serialVersionUID = 1L;


    /** 奖金池id */
    @TableId(type = IdType.AUTO)
    private Long id;


    /** 奖金池总额 */
    @Excel(name = "当期奖金池总额")
    @ApiModelProperty(value= "当期奖金池总额")
    @TableField("`prize_total`")
    private BigDecimal prizeTotal;


    /** 奖金池历史累计收益 */
    @Excel(name = "奖金池历史累计收益")
    @ApiModelProperty(value= "奖金池历史累计收益")
    @TableField("`prize_count_income`")
    private BigDecimal prizeCountIncome;


    /** 当期已发放金额 */
    @Excel(name = "当期已发放金额")
    @ApiModelProperty(value= "当期已发放金额")
    @TableField("`issued_amount`")
    private BigDecimal issuedAmount;


    /** 奖金池开始时间 */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "奖金池开奖时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("`prize_pool_start_time`")
    private LocalDateTime prizePoolStartTime;


    /** 奖金池结束时间(开奖时间) */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "奖金池结束时间(开奖时间)", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("`prize_pool_end_time`")
    private LocalDateTime prizePoolEndTime;


    /** 期数 */
    @Excel(name = "期数")
    @TableField("`nper`")
    private Integer nper;

    /** 中奖人数 */
    @Excel(name = "中奖人数")
    @TableField("`number`")
    private Integer number;


    /** 删除标志（0代表存在 2代表删除） */
    @TableLogic
    @TableField("`del_flag`")
    private String delFlag;


    /** 租户ID */
    @Excel(name = "租户ID")
    @ApiModelProperty(value= "租户ID")
    @TableField("`tenant_id`")
    private Long tenantId;


}
